<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>用户登录</title>
    <link rel="stylesheet" href="/css/base/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">


    <link rel="stylesheet" href="/css/login.css">
    <link rel="stylesheet" href="/css/basic.css">
    <script src="/css/base/bootstrap/js/jquery-1.10.1.js"></script>
    <script src="/css/base/bootstrap/js/bootstrap.js"></script>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <form action="/index.php?r=home/dologin" class="form-horizontal" method="post">
                <span class="heading">存储系统</span>
                <div class="form-group">
                    <input type="text" name="name" class="form-control" id="inputEmail3" placeholder="用户名或电子邮件">
                    <i class="fa fa-user"></i>
                </div>
                <div class="form-group help">
                    <input type="password" name="password" class="form-control" id="inputPassword3" placeholder="密　码">
                    <i class="fa fa-lock"></i>
                    <a href="#" class="fa fa-question-circle"></a>
                </div>
                <div class="form-group">
                    <div class="main-checkbox">
                        <input type="checkbox" value="None" id="checkbox1" name="check"/>
                        <label for="checkbox1"></label>
                    </div>
                    <span class="text">Remember me</span>
                    <button type="submit" class="btn btn-default">登录</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $(function (){
        <?php
        if(isset($alert)){
            echo "alert('用户名或密码输入错误')";
        }
        ?>
    })
</script>
</body>
</html>